package cn.jtool.dig.server.dao.repository;

import cn.jtool.dig.server.dao.entity.LogConnect;
import cn.jtool.dig.server.domain.response.LogConnectListResponse;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface LogConnectRepository extends JpaRepository<LogConnect, Integer> {

//    @Query(value = "select  LOG_CONNECT.*, LICENSE.LICENSE_NAME, TUNNEL.TUNNEL_NAME from LOG_CONNECT " +
//            "left join LICENSE on LOG_CONNECT.LICENSE_ID=LICENSE.ID " +
//            "left join tunnel on LOG_CONNECT.TUNNEL_ID=tunnel.ID")
//    List<LogConnectListResponse> list();

}
